from faker import Faker
from random import randint
# 随机产出测试数据
def faker_data(type):
    faker = Faker(locale='zh_cn')
    if type == 'name':
        return faker.name()
    elif type == "phone":
        return faker.phone_number()
    elif type == 'address':
        return faker.address()
    elif type =='ssn':
        return faker.ssn(min_age=19,max_age=95)
    elif type == 'age':
        return randint(19,95)

